package com.tust.service.impl;

import com.tust.dao.TeachingDao;
import com.tust.domain.Teaching;
import com.tust.service.TeachingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeachingServiceImpl implements TeachingService {
    @Autowired
    private TeachingDao teachingDao;

    @Override
    public int insertTeaching(Teaching teaching) {
        return teachingDao.insertTeaching(teaching);
    }

    @Override
    public int deleteTeaching(Teaching teaching) {
        return teachingDao.deleteTeaching(teaching);
    }

    @Override
    public int updateTeaching(Teaching oldTeaching, Teaching teaching) {
        return teachingDao.updateTeaching(oldTeaching, teaching);
    }

    @Override
    public List<Teaching> selectTeaching(Teaching teaching) {
        return teachingDao.selectTeaching(teaching);
    }

    @Override
    public List<Teaching> selectTeachingByCourseNum(String courseNum) {
        return teachingDao.selectTeachingByCourseNum(courseNum);
    }

    @Override
    public List<Teaching> selectTeachingByTeacherNum(String teacherNum) {
        return teachingDao.selectTeachingByTeacherNum(teacherNum);
    }

    @Override
    public List<Teaching> selectTeachingBySchoolYear(String schoolYear) {
        return teachingDao.selectTeachingBySchoolYear(schoolYear);
    }

    @Override
    public List<Teaching> selectTeachingBySchoolSemester(String schoolSemester) {
        return teachingDao.selectTeachingBySchoolSemester(schoolSemester);
    }

    @Override
    public List<Teaching> selectTeachingByTeachTimes(String teachTimes) {
        return teachingDao.selectTeachingByTeachTimes(teachTimes);
    }

    @Override
    public List<Teaching> selectTeachingByCoachTimes(String coachTimes) {
        return teachingDao.selectTeachingByCoachTimes(coachTimes);
    }

    @Override
    public List<Teaching> selectTeachingByLeadExperimentTimes(String leadExperimentTimes) {
        return teachingDao.selectTeachingByLeadExperimentTimes(leadExperimentTimes);
    }

    @Override
    public List<Teaching> selectTeachingAll() {
        return teachingDao.selectTeachingAll();
    }
}
